<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2012-1-15
  Time: 8:31:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/inc/taglibs.jsp"%>
<form id="searchForm" method="post" action="${path }/admin/airPort">
	<input type="hidden" name="status" value="${param.status}"/>
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="${pageTurn.page }" />
	<input type="hidden" name="numPerPage" value="${pageTurn.pageSize }" />
	<input type="hidden" name="orderField" value="" />
	<input type="hidden" name="rel" value="${rel }"/>
</form>
<form rel="searchForm" class="pageForm" onsubmit="return navTabSearch(this);" action="${path }/admin/airPort?rel=${rel}" method="post">
	<div class="searchBar">
		<table>
			<tr>
				<td>
					<label>机场名称:</label>
				</td>
				<td>
					<input type="text" name="name" value="${name }"/>
				</td>
			</tr>
		</table>

		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
	<div class="panelBar">
			<ul class="toolBar">
				<c:choose>
					<c:when test="${!empty isLookup }">
						<li><div class="button"><div class="buttonContent"><button type="button" multLookup="idarry" warn="请选择广告位">选择带回</button></div></div></li>
					</c:when>
					<c:otherwise>
						<li><a class="add" href="${path}/admin/airPort/edit" target="dialog"  title="添加机场"><span>添加</span></a></li>
						<li><a class="delete" href="${path}/admin/airPort/del?rel=${rel}" target="selectedTodo" rel="ids" title="确定删除所选记录?"><span>删除</span></a></li>
					</c:otherwise>
				</c:choose>

			</ul>
	</div>
	<table class="list" width="99%" layoutH="100">
		<thead>
			<tr>
				<th width="30px">选择</th>
				<th width="80px">序号</th>
				<th width="150px">机场名称</th>
				<th width="100px">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.result }" var="item">
				<tr>
					<td>
						<c:choose>
							<c:when test="${!empty isLookup }">
								<input name="ids" value="{id:'${item.id}',name:'${item.name }'}" type="checkbox">
							</c:when>
							<c:otherwise>
								<input name="ids" value="${item.id }" type="checkbox">
							</c:otherwise>
						</c:choose>

					</td>

					<td>
						${item.id}
					</td>
					<td>
						${item.name}
					</td>

					<c:if test="${empty isLookup }">
					<td>
						<a class="btnEdit" title="编辑" target="dialog" href="${path}/admin/airPort/edit?id=${item.id}&rel=${rel}" rel="${rel }"><span>修改</span></a>
					</td>
					</c:if>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<%@ include file="/inc/admin-page.jsp"%>
	</div>
</div>